//💕 整体策略:总共5张图,每张图都使用立即执行函数,避免变量的冲突


//😎顶部--折线图
(function () {
  const myChart = echarts.init(document.querySelector('#line'))

  const option = {}

  myChart.setOption(option)

  window.addEventListener('resize', function () {
    myChart.resize()
  })

})();




// 😎顶部--饼状图
(function () {
  const myChart = echarts.init(document.querySelector('#line'))

  const option = {}

  myChart.setOption(option)

  window.addEventListener('resize', function () {
    myChart.resize()
  })

})();



//😎😎 中间-柱状图--tab切换
(function () {
  const myChart = echarts.init(document.querySelector('#line'))

  const option = {}

  myChart.setOption(option)

  window.addEventListener('resize', function () {
    myChart.resize()
  })

})();




//😎😎😎 底部--饼状图
(function () {
  const myChart = echarts.init(document.querySelector('#line'))

  const option = {}

  myChart.setOption(option)

  window.addEventListener('resize', function () {
    myChart.resize()
  })

})();



//😎😎😎 底部--地形图
(function () {
  const myChart = echarts.init(document.querySelector('#line'))

  const option = {}

  myChart.setOption(option)

  window.addEventListener('resize', function () {
    myChart.resize()
  })

})();



